package com.lagou.edu.kubernetes.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.lagou.edu.kubernetes.pojo.Position;
import com.lagou.edu.kubernetes.mapper.PositionMapper;
import com.lagou.edu.kubernetes.service.IPositionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhliang
 * @since 2020-10-15
 */
@Service
public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> implements IPositionService {

    @Autowired
    PositionMapper positionMapper;

    @Override
    public List<Position> findAll() {
        return positionMapper.selectList(new LambdaQueryWrapper<Position>());
    }
}
